package com.gyh.modules.excel;

import org.apache.poi.ss.usermodel.Cell;

/**
* @author 作者 gyh:
* @version 创建时间：2018年4月1日 下午8:22:56
* 
*/
public class ExcelException extends Exception{
	private static final long serialVersionUID = 1L;

	private Integer row;	//Excel中的行数
	private Integer column;	//Excel中的列数
	private String message;	//Excel中错误描述
	
	public ExcelException() {
		super();
	}
	
	/**
	 * 错误描述
	 * @param message 错误描述
	 */
	public ExcelException(String message) {
		super(message);
		this.message = message;
	}

	
	public ExcelException(String message,Cell cell) {
		super(message);
		this.message = message;
		this.row = cell.getRowIndex();
		this.column = cell.getColumnIndex();
	}
	

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	
	public Integer getRow() {
		return row;
	}


	public void setRow(Integer row) {
		this.row = row;
	}


	public Integer getColumn() {
		return column;
	}


	public void setColumn(Integer column) {
		this.column = column;
	}


}
